Component org.nuxeo.ecm.platform.thumbnail.contrib
In bundle org.nuxeo.ecm.webapp.base
Contributions
- org.nuxeo.ecm.platform.thumbnail.contrib--urlpatterns
- org.nuxeo.ecm.platform.thumbnail.contrib--startURL
- org.nuxeo.ecm.platform.thumbnail.contrib--codecs
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.thumbnail.contrib">
<extension target="org.nuxeo.ecm.platform.ui.web.rest.URLService"
point="urlpatterns">
<urlPattern name="downloadThumbnail" enabled="true">
<defaultURLPolicy>false</defaultURLPolicy>
<needBaseURL>true</needBaseURL>
<needRedirectFilter>false</needRedirectFilter>
<needFilterPreprocessing>true</needFilterPreprocessing>
<codecName>downloadThumbnail</codecName>
<actionBinding>#{thumbnailManager.downloadThumbnail}</actionBinding>
<documentViewBinding>
#{restHelper.documentView}
</documentViewBinding>
<newDocumentViewBinding>
#{restHelper.newDocumentView}
</newDocumentViewBinding>
</urlPattern>
</extension>
<extension
target="org.nuxeo.ecm.platform.url.service.DocumentViewCodecService"
point="codecs">
<documentViewCodec name="downloadThumbnail"
enabled="true" prefix="nxthumb"
class="org.nuxeo.ecm.platform.url.codec.DocumentFileCodec" />
</extension>
<extension
target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
point="startURL">
<startURLPattern>
<patterns>
<pattern>nxthumb/</pattern>
</patterns>
</startURLPattern>
</extension>
</component>